<?php

$origin = isset($_SERVER['HTTP_ORIGIN'])? $_SERVER['HTTP_ORIGIN'] : '';//获取客户端请求头参数Origin
header("Access-Control-Allow-Origin:http://test1.com");

// header("Access-Control-Allow-Origin:http://test1.com");







    $arr = array(
    "filename" => $_FILES['file']['name'],
    "filesize" => $_FILES['file']['size'] / 1024,
    "filepath" => $_FILES['file']['tmp_name']
    );


echo json_encode($arr);

?>
